package com.ygqh.baby.model;

import com.ygqh.baby.ao.PromotionType;
import com.ygqh.baby.ao.YgQuartzJob;

import java.util.Date;
import java.util.List;

/**
 * 〈〉
 *
 * @author guohao
 * @date 2019/3/8 14:36
 * @since 1.0.0
 */
public class PromotionTag {

    private Long promotionId;
    private PromotionType promotionType;
    private String tagName;
    private Date resetTime;
    private String updateBy;


    private boolean expired = false;
    private List<Long> pidList;


    public List<Long> getPidList() {
        return pidList;
    }

    public void setPidList(List<Long> pidList) {
        this.pidList = pidList;
    }

    public boolean isExpired() {
        return expired;
    }

    public void setExpired(boolean expired) {
        this.expired = expired;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Long getPromotionId() {
        return promotionId;
    }

    public void setPromotionId(Long promotionId) {
        this.promotionId = promotionId;
    }

    public PromotionType getPromotionType() {
        return promotionType;
    }

    public void setPromotionType(PromotionType promotionType) {
        this.promotionType = promotionType;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public Date getResetTime() {
        return resetTime;
    }

    public void setResetTime(Date resetTime) {
        this.resetTime = resetTime;
    }


    public String getJobName() {
        return YgQuartzJob.PromotionTag + "_" + promotionType + "_" + promotionId;
    }
}
